;;add Melpa
(require 'package)
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-enabled-themes '(misterioso))
 '(package-archives
   '(("gnu" . "https://elpa.gnu.org/packages/")
     ("melpa" . "https://melpa.org/packages/")))
 '(package-selected-packages
   '(projectile yascroll spacemacs-theme markdown-mode haskell-mode dashboard all-the-icons)))
(package-initialize)
;;
;;set font size to 16pt
(set-face-attribute 'default nil :height 160)
;;
;;remove scroll-bar, menu-bar and tool-bar
(toggle-scroll-bar -1)
(tool-bar-mode -1)
(menu-bar-mode -1)
;;
;;enable dashboard
(require 'dashboard)
(dashboard-setup-startup-hook)
(setq dashboard-center-content t) ;;centers it
(setq dashboard-set-heading-icons t) ;;add icons
(setq dashboard-set-file-icons t)
(setq dashboard-show-shortcuts nil) ;;disable shortcut indicator
;;
;;disable background on CLI
(defun on-frame-open (frame)
  (if (not (display-graphic-p frame))
    (set-face-background 'default "unspecified-bg" frame)))
(on-frame-open (selected-frame))
(add-hook 'after-make-frame-functions 'on-frame-open)
;;
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 )

